from langchain_openai import OpenAIEmbeddings
from dotenv import load_dotenv
embeddings_model = OpenAIEmbeddings()

load_dotenv()
embeddings_model = OpenAIEmbeddings()

embeddings = embeddings_model.embed_embeddings(
    ["Hi,there!",
    "Oh,hello!",
    "What's your name?",
    "My friends call me World",
    "Hello World!",
     ]
)
print(len(embeddings), len(embeddings[0]))
print(embeddings[0][:5])